#!/usr/bin/python
# -*- coding: UTF-8 -*-

#编码测试
s = '路飞'
s_gdk = s.encode('gbk')  #转为gdk编码

print(s_gdk)

s_gdk = s_gdk.decode('gbk') #解码为unicode

print(s_gdk)